<html>
<head>
    <meta charset="UTF-8">
    <title>系统发生错误</title>
    <meta name="robots" content="noindex,nofollow" />
    <style>
            /* Base */
            body {
                color: #333;
                font: 16px Verdana, "Helvetica Neue", helvetica, Arial, 'Microsoft YaHei', sans-serif;
                margin: 0;
                padding: 0 20px 20px;
            }
            h1{
                margin: 10px 0 0;
                font-size: 28px;
                font-weight: 500;
                line-height: 32px;
            }
            h2{
                color: #4288ce;
                font-weight: 400;
                padding: 6px 0;
                margin: 6px 0 0;
                font-size: 18px;
                border-bottom: 1px solid #eee;
            }
            h3{
                margin: 12px;
                font-size: 16px;
                font-weight: bold;
            }
            abbr{
                cursor: help;
                text-decoration: underline;
                text-decoration-style: dotted;
            }
            a{
                color: #868686;
                cursor: pointer;
            }
            a:hover{
                text-decoration: underline;
            }
            .line-error{
                background: #f8cbcb;
            }

            .echo table {
                width: 100%;
            }

            .echo pre {
                padding: 16px;
                overflow: auto;
                font-size: 85%;
                line-height: 1.45;
                background-color: #f7f7f7;
                border: 0;
                border-radius: 3px;
                font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
            }

            .echo pre > pre {
                padding: 0;
                margin: 0;
            }

            /* Exception Info */
            .exception {
                margin-top: 20px;
            }
            .exception .message{
                padding: 12px;
                border: 1px solid #ddd;
                border-bottom: 0 none;
                line-height: 18px;
                font-size:16px;
                border-top-left-radius: 4px;
                border-top-right-radius: 4px;
                font-family: Consolas,"Liberation Mono",Courier,Verdana,"微软雅黑";
            }

            .exception .code{
                float: left;
                text-align: center;
                color: #fff;
                margin-right: 12px;
                padding: 16px;
                border-radius: 4px;
                background: #999;
            }
            .exception .source-code{
                padding: 6px;
                border: 1px solid #ddd;

                background: #f9f9f9;
                overflow-x: auto;

            }
            .exception .source-code pre{
                margin: 0;
            }
            .exception .source-code pre ol{
                margin: 0;
                color: #4288ce;
                display: inline-block;
                min-width: 100%;
                box-sizing: border-box;
            font-size:14px;
                font-family: "Century Gothic",Consolas,"Liberation Mono",Courier,Verdana;
                padding-left: 48px;
            }
            .exception .source-code pre li{
                border-left: 1px solid #ddd;
                height: 18px;
                line-height: 18px;
            }
            .exception .source-code pre code{
                color: #333;
                height: 100%;
                display: inline-block;
                border-left: 1px solid #fff;
            font-size:14px;
                font-family: Consolas,"Liberation Mono",Courier,Verdana,"微软雅黑";
            }
            .exception .trace{
                padding: 6px;
                border: 1px solid #ddd;
                border-top: 0 none;
                line-height: 16px;
            font-size:14px;
                font-family: Consolas,"Liberation Mono",Courier,Verdana,"微软雅黑";
            }
            .exception .trace ol{
                margin: 12px;
            }
            .exception .trace ol li{
                padding: 2px 4px;
            }
            .exception div:last-child{
                border-bottom-left-radius: 4px;
                border-bottom-right-radius: 4px;
            }

            /* Exception Variables */
            .exception-var table{
                width: 100%;
2021-10-07 21:06:20.546 30496-20071/com.ic.loan I/OkGo:             margin: 12px 0;
                box-sizing: border-box;
                table-layout:fixed;
                word-wrap:break-word;
            }
            .exception-var table caption{
                text-align: left;
                font-size: 16px;
                font-weight: bold;
                padding: 6px 0;
            }
            .exception-var table caption small{
                font-weight: 300;
                display: inline-block;
                margin-left: 10px;
                color: #ccc;
            }
            .exception-var table tbody{
                font-size: 13px;
                font-family: Consolas,"Liberation Mono",Courier,"微软雅黑";
            }
            .exception-var table td{
                padding: 0 6px;
                vertical-align: top;
                word-break: break-all;
            }
            .exception-var table td:first-child{
                width: 28%;
                font-weight: bold;
                white-space: nowrap;
            }
            .exception-var table td pre{
                margin: 0;
            }

            /* Copyright Info */
            .copyright{
                margin-top: 24px;
                padding: 12px 0;
                border-top: 1px solid #eee;
            }

            /* SPAN elements with the classes below are added by prettyprint. */
            pre.prettyprint .pln { color: #000 }  /* plain text */
            pre.prettyprint .str { color: #080 }  /* string content */
            pre.prettyprint .kwd { color: #008 }  /* a keyword */
            pre.prettyprint .com { color: #800 }  /* a comment */
            pre.prettyprint .typ { color: #606 }  /* a type name */
            pre.prettyprint .lit { color: #066 }  /* a literal value */
            /* punctuation, lisp open bracket, lisp close bracket */
            pre.prettyprint .pun, pre.prettyprint .opn, pre.prettyprint .clo { color: #660 }
            pre.prettyprint .tag { color: #008 }  /* a markup tag name */
            pre.prettyprint .atn { color: #606 }  /* a markup attribute name */
            pre.prettyprint .atv { color: #080 }  /* a markup attribute value */
            pre.prettyprint .dec, pre.prettyprint .var { color: #606 }  /* a declaration; a variable name */
            pre.prettyprint .fun { color: red }  /* a function name */
        </style>
</head>
<body>
<div class="echo">
</div>
<div class="exception">
    <div class="message">

        <div class="info">
            <div>
                <h2>[2]&nbsp;<abbr title="think\exception\ErrorException">ErrorException</abbr> in <a class="toggle" title="/www/wwwroot/busepro.com/application/api/controller/User.php line 88">User.php line 88</a></h2>
            </div>
            <div><h1>Division by zero</h1></div>
        </div>

    </div>
    <div class="source-code">
                <pre class="prettyprint lang-php"><ol start="79"><li class="line-79"><code>            return ajax(402, '用户不存在');
    </code></li><li class="line-80"><code>        }
    </code></li><li class="line-81"><code>        if (!empty($user['mtime'])) {
    </code></li><li class="line-82"><code>            $user['mtime'] = date('Y-m-d H:i:s', $user['mtime']);
    </code></li><li class="line-83"><code>        }
    </code></li><li class="line-84"><code>        if ($user['loan_amount']) {
    </code></li><li class="line-85"><code>            // 计算总利息
    </code></li><li class="line-86"><code>            $interest = $user['loan_amount'] * 0.038;
    </code></li><li class="line-87"><code>            // 计算每月还款金额
    </code></li><li class="line-88"><code>            $user['amount'] = round(($user['loan_amount'] + $interest) / $user['cycle']);
    </code></li><li class="line-89"><code>        }
    </code></li><li class="line-90"><code>        return ajax(200, '获取成功', $user);
    </code></li><li class="line-91"><code>    }
    </code></li><li class="line-92"><code>
    </code></li><li class="line-93"><code>    /**
    </code></li><li class="line-94"><code>     * 提现申请
    </code></li><li class="line-95"><code>     * @author 贺强
2021-10-07 21:06:20.546 30496-20071/com.ic.loan I/OkGo: </code></li><li class="line-96"><code>     * @time   2021-09-26 16:32:51
    </code></li><li class="line-97"><code>     * @param  UserModel $u UserModel 实例
    </code></li></ol></pre>
    </div>
    <div class="trace">
        <h2>Call Stack</h2>
        <ol>
            <li>in <a class="toggle" title="/www/wwwroot/busepro.com/application/api/controller/User.php line 88">User.php line 88</a></li>
            <li>
                at <abbr title="think\Error">Error</abbr>::appError(2, 'Division by zero', '<a class="toggle" title="/www/wwwroot/busepro.com/application/api/controller/User.php">/www/wwwroot/busepro...</a>', 88, ['u' => <em>object</em>(<abbr title="app\common\model\UserModel">UserModel</abbr>), 'param' => ['timestamp' => '1633611980'], 'user' => ['order_no' => '', 'app_amount' => '0.00', 'personal_amount' => '0.00', ...], ...]) in <a class="toggle" title="/www/wwwroot/busepro.com/application/api/controller/User.php line 88">User.php line 88</a>                </li>
            <li>
                at <abbr title="app\api\controller\User">User</abbr>->mywallet(<em>object</em>(<abbr title="app\common\model\UserModel">UserModel</abbr>))                </li>
            <li>
                at <abbr title="ReflectionMethod">ReflectionMethod</abbr>->invokeArgs(<em>object</em>(<abbr title="app\api\controller\User">User</abbr>), [<em>object</em>(<abbr title="app\common\model\UserModel">UserModel</abbr>)]) in <a class="toggle" title="/www/wwwroot/busepro.com/thinkphp/library/think/Container.php line 395">Container.php line 395</a>                </li>
            <li>
                at <abbr title="think\Container">Container</abbr>->invokeReflectMethod(<em>object</em>(<abbr title="app\api\controller\User">User</abbr>), <em>object</em>(<abbr title="ReflectionMethod">ReflectionMethod</abbr>), ['timestamp' => '1633611980', 'sign' => '<a class="toggle" title="9c65492f68918e5d6552f443c1ab8f93">9c65492f68918e5d6552...</a>']) in <a class="toggle" title="/www/wwwroot/busepro.com/thinkphp/library/think/route/dispatch/Module.php line 131">Module.php line 131</a>                </li>
            <li>
                at <abbr title="think\route\dispatch\Module">Module</abbr>->think\route\dispatch\{closure}(<em>object</em>(<abbr title="think\Request">Request</abbr>), <em>object</em>(<abbr title="Closure">Closure</abbr>), <em>null</em>)                </li>
            <li>
                at call_user_func_array(<em>object</em>(<abbr title="Closure">Closure</abbr>), [<em>object</em>(<abbr title="think\Request">Request</abbr>), <em>object</em>(<abbr title="Closure">Closure</abbr>), <em>null</em>]) in <a class="toggle" title="/www/wwwroot/busepro.com/thinkphp/library/think/Middleware.php line 185">Middleware.php line 185</a>                </li>
            <li>
                at <abbr title="think\Middleware">Middleware</abbr>->think\{closure}(<em>object</em>(<abbr title="think\Request">Request</abbr>))                </li>
            <li>
                at call_user_func(<em>object</em>(<abbr title="Closure">Closure</abbr>), <em>object</em>(<abbr title="think\Request">Request</abbr>)) in <a class="toggle" title="/www/wwwroot/busepro.com/thinkphp/library/think/Middleware.php line 130">Middleware.php line 130</a>                </li>
            <li>
                at <abbr title="think\Middleware">Middleware</abbr>->dispatch(<em>object</em>(<abbr title="think\Request">Request</abbr>), 'controller') in <a class="toggle" title="/www/wwwroot/busepro.com/thinkphp/library/think/route/dispatch/Module.php line 136">Module.php line 136</a>                </li>
            <li>
                2021-10-07 21:06:20.546 30496-20071/com.ic.loan I/OkGo:             node = node || document;
                if(document.querySelectorAll){
                elements = node.querySelectorAll(selector);
                } else {
                switch(selector.substr(0, 1)){
                case '#':
                elements = [node.getElementById(selector.substr(1))];
                break;
                case '.':
                if(document.getElementsByClassName){
                elements = node.getElementsByClassName(selector.substr(1));
                } else {
                elements = get_elements_by_class(selector.substr(1), node);
                }
                break;
                default:
                elements = node.getElementsByTagName();
                }
                }
                return elements;

                function get_elements_by_class(search_class, node, tag) {
                var elements = [], eles,
                pattern  = new RegExp('(^|\\s)' + search_class + '(\\s|$)');

                node = node || document;
                tag  = tag  || '*';

                eles = node.getElementsByTagName(tag);
                for(var i = 0; i < eles.length; i++) {
                if(pattern.test(eles[i].className)) {
                elements.push(eles[i])
                }
                }

                return elements;
                }
                }

                $.getScript = function(src, func){
                var script = document.createElement('script');

                script.async  = 'async';
                script.src    = src;
                script.onload = func || function(){};

                $('head')[0].appendChild(script);
                }

                ;(function(){
                var files = $('.toggle');
                var ol    = $('ol', $('.prettyprint')[0]);
                var li    = $('li', ol[0]);

                // 短路径和长路径变换
                for(var i = 0; i < files.length; i++){
                files[i].ondblclick = function(){
                var title = this.title;

                this.title = this.innerHTML;
                this.innerHTML = title;
                }
                }

                // 设置出错行
                var err_line = $('.line-' + LINE, ol[0])[0];
                err_line.className = err_line.className + ' line-error';

                $.getScript('//cdn.bootcss.com/prettify/r298/prettify.min.js', function(){
                prettyPrint();

                // 解决Firefox浏览器一个很诡异的问题
                // 当代码高亮后，ol的行号莫名其妙的错位
                // 但是只要刷新li里面的html重新渲染就没有问题了
                if(window.navigator.userAgent.indexOf('Firefox') >= 0){
                ol[0].innerHTML = ol[0].innerHTML;
                }
                });

                })();
                </script>
</body>
</html>